<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../jquery/jquery-3.6.0.js"></script>
    <style>
        body{
            text-align: center;
        }
    </style>
   
</head>
<body>
    <p>This is a paragraph.</p>
    <button>请点击这里</button>
    <script>
        $(document).ready(function(){
        $("button").bind({
            click:function(){$("p").slideToggle();},
            mouseover:function(){$('body').css('color','orange');},
            mouseout:function(){$('body').css('color','orchid');}
        });
    });
    </script>
</body>
</html>